﻿<%@ Page Title="Zupons Receipt" Language="C#" MasterPageFile="~/SiteMaster.master"
    AutoEventWireup="true" CodeFile="ECReceipt.aspx.cs" Inherits="Front_ECReceipt" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControl/Error.ascx" TagName="PayPal" TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="" id="main-content">
        <div class="body">
            <div class="body">
                <table id="main-body">
                    <tbody>
                        <tr>
                            <td class="content">
                                <div class="box-outer">
                                    <div class="box">
                                        <asp:PlaceHolder runat="server" ID="SuccessfulPlaceholder">
                                            <table>
                                                <tr>
                                                    <td width="19">
                                                        <img src="Images/curve1.jpg" width="19" height="17" />
                                                    </td>
                                                    <td width="665" background="images/top_bg.jpg">
                                                        <img src="images/top_bg.jpg" width="3" height="17" />
                                                    </td>
                                                    <td width="19">
                                                        <img src="images/curve4.jpg" width="19" height="17" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td background="images/left_bg.jpg">
                                                        <img src="images/left_bg.jpg" width="19" height="3" />
                                                    </td>
                                                    <td>
                                                        <table width="400" align="center">
                                                            <font face="Verdana" color="black" size="2"><b>ThankYou For Payment</b></font>
                                                            <tr>
                                                            </tr>
                                                            <tr align="center">
                                                                <td>
                                                                    Transaction ID:
                                                                </td>
                                                                <td>
                                                                    <asp:Literal ID="TransactionIDLiteral" runat="server" Text="<%#Receipt.DoExpressCheckoutPaymentResponseDetails.PaymentInfo[0].TransactionID%>"></asp:Literal>
                                                                </td>
                                                            </tr>
                                                            <tr align="center">
                                                                <td>
                                                                    Amount:
                                                                </td>
                                                                <td>
                                                                    <asp:Literal ID="CurrencyLiteral" runat="server" Text="<%#Receipt.DoExpressCheckoutPaymentResponseDetails.PaymentInfo[0].GrossAmount.currencyID%>"></asp:Literal>
                                                                    <asp:Literal ID="GrossAmountLiteral" runat="server" Text="<%#Receipt.DoExpressCheckoutPaymentResponseDetails.PaymentInfo[0].GrossAmount.Value%>"></asp:Literal>
                                                                </td>
                                                            </tr>
                                                            <tr align="center">
                                                                <td>
                                                                    CouponID:
                                                                </td>
                                                                <td>
                                                                    <div style="width: 300px; word-wrap: break-word;">
                                                                        <asp:Literal ID="LitCouponID" runat="server" Text=""></asp:Literal>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td background="images/right_bg.jpg">
                                                        <img src="images/right_bg.jpg" width="19" height="3" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/curve2.jpg" width="19" height="14" />
                                                    </td>
                                                    <td background="images/bottom_bg.jpg">
                                                        <img src="images/bottom_bg.jpg" width="5" height="14" />
                                                    </td>
                                                    <td>
                                                        <img src="images/curve3.jpg" width="19" height="14" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:PlaceHolder>
                                        <table id="PayPalError" runat="server" visible="false">
                                            <tr>
                                                <td width="19">
                                                    <img src="Images/curve1.jpg" width="19" height="17" />
                                                </td>
                                                <td width="665" background="images/top_bg.jpg">
                                                    <img src="images/top_bg.jpg" width="3" height="17" />
                                                </td>
                                                <td width="19">
                                                    <img src="images/curve4.jpg" width="19" height="17" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td background="images/left_bg.jpg">
                                                    <img src="images/left_bg.jpg" width="19" height="3" />
                                                </td>
                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td colspan="2">
                                                                <uc4:PayPal ID="Errors" runat="server" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td background="images/right_bg.jpg">
                                                    <img src="images/right_bg.jpg" width="19" height="3" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/curve2.jpg" width="19" height="14" />
                                                </td>
                                                <td background="images/bottom_bg.jpg">
                                                    <img src="images/bottom_bg.jpg" width="5" height="14" />
                                                </td>
                                                <td>
                                                    <img src="images/curve3.jpg" width="19" height="14" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="box-inner">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <asp:LinkButton ID="lnkMore1" runat="server" Style="display: none">View more Cities</asp:LinkButton>
    <asp:Panel ID="PanelSubscriptionPopup1" runat="server" Style="border: 2px solid #87ae53;
        width: 500px; height: auto; background-color: #fff; font-family: Arial; display: none;"
        EnableViewState="True">
        <div style="float: right; margin-top: -10px; right: -25px; top: 0;">
            <asp:ImageButton ID="imgClose" runat="server" Width="20px" Height="20px" ImageUrl="~/Images/cross.png"
                OnClick="imgClose_Click" /></div>
        <div style="height: 40px; background-color: #ddedcc; padding-top: 10px;">
            <h1 style="text-align: center; font-size: 14pt; color: #303030; margin: 0px 0 0 20px;
                font-family: Arial; font-weight: bold;">
                Here's what you bought!
            </h1>
        </div>
        <div>
            <table>
                <tr>
                    <td style="font-family: Arial; font-weight: bold; font-size: 9pt; width:250px; ">
                        <asp:Image ID="DealImg" Height="100" Width="100" runat="server" ImageUrl="../images/product.jpg" /><br />
                        <br />
                        <asp:Label ID="ExpireDate" Text="" runat="server"></asp:Label>
                    </td>
                    <td colspan="2" width="250px">
                        <table width="100%" style="font-family: Arial; font-weight: bold; font-size: 9pt;">
                            <tr>
                                <td colspan="5">
                                    <asp:Label ID="lblDescription" runat="server" Width="350px"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="5">
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td width="10%">
                                    <b>Quantity </b>
                                </td>
                                <td width="5%">
                                </td>
                                <td width="10%">
                                    <b>Price</b>
                                </td>
                                <td width="5%">
                                </td>
                                <td width="10%">
                                    <b>Total </b>
                                </td>
                            </tr>
                            <tr>
                                <td width="100%" colspan="5">
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="txtQuantity" runat="server" Height="19px" Width="52px" AutoPostBack="True"
                                        CssClass="txt_align" MaxLength="5"></asp:Label>
                                </td>
                                <td>
                                    X
                                </td>
                                <td>
                                    <b>$<asp:Label ID="lblPrice" runat="server"></asp:Label></b>
                                </td>
                                <td>
                                    =
                                </td>
                                <td>
                                    <b>$<asp:Label ID="lblTotalPrice" runat="server"></asp:Label></b>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <br />
                                    <asp:Label ID="lblFinalPrice" runat="server" Text="" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label Text="Credit" ID="Credit" runat="server"></asp:Label>
                                </td>
                                <td> <asp:Label ID="lblCredit" runat="server" Text=""></asp:Label>
                                </td>
                                <td>
                                   
                                </td>
                            </tr>
                            <tr>
                                <td width="40%" colspan="5">
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td colspan="3" style="text-align: right;">
                                    <b>Your Final Price :</b>
                                </td>
                                <td>
                                    <b>$<asp:Label ID="lblYourTotal" runat="server" Text=""></asp:Label></b>
                                </td>
                            </tr>
                            <tr>
                                <td width="100%" colspan="5">
                                    <hr />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <div style="height: 1px; background-color: #ccc; margin: 10px 0;"></div>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="font-family: Arial; font-weight: bold; font-size: 12pt;">
                        Get $10 credit by reffering a friend!<br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <div style="float: left; font-family: Arial; font-weight: bold; font-size: 9px; margin-left: 10px;">
                            Refer via:</div>
                        <div style="float: left; margin-left: 10px;">
                            <asp:ImageButton ID="Image3" runat="server" ImageUrl="~/Images/w41_email.png" Width="25px"
                                Height="25px" OnClick="Image3_Click" /></div>
                        <div style="float: left; margin-left: 10px;">
                            <a href="" title="Share this link with Facebook" id="FaceBook" runat="server" target="_blank">
                                <img src="Images/facebookicon_sm.png" width="25" height="25" border="0" /></a></div>
                        <div style="float: left; margin-left: 10px;">
                            <a href="" title="Share this link with Twitter" id="Twiteer" runat="server" target="_blank">
                                <img src="Images/tweeticon_sm.png" width="25" height="25" border="0" /></a>
                        </div>
                    </td>
                </tr>
                <tr runat="server" id="To" visible="false">
                    <td>
                        <b>To:</b>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTo" runat="server"></asp:TextBox><br />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtTo"
                            ErrorMessage="To is required." ToolTip="To is required." ValidationGroup="RegGift"></asp:RequiredFieldValidator><br />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtTo"
                            ErrorMessage="You must enter an valid email address" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ValidationGroup="RegGift">
                        </asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr runat="server" id="From" visible="false">
                    <td>
                        <b>From:</b><br />
                        (Name you want the recipient to see.)
                    </td>
                    <td>
                        <asp:TextBox ID="txtFrom" runat="server"></asp:TextBox><br />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtFrom"
                            ErrorMessage="From is required." ToolTip="From is required." ValidationGroup="RegGift"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="txtErrorMsg" runat="server" Text="" Visible="false" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" runat="server" id="Send" visible="false">
                        <asp:Button ID="btnReferSend" runat="server" Text="Send" Font-Bold="true" ValidationGroup="RegGift"
                            OnClick="btnReferSend_Click" ForeColor="Black" />
                        <asp:Button ID="BtnCancel" runat="server" Text="Cancel" Font-Bold="true" ValidationGroup="RegGift"
                            ForeColor="Black" OnClick="BtnCancel_Click" CausesValidation="false" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="font-family: Arial; font-weight: bold; font-size: 9px;">
                        Or share your unique referral link:
                        <asp:TextBox ID="textLink" runat="server" Width="250px"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div style="height: 40px; background-color: #ddedcc;">
        </div>
        <div align="center">
            <asp:Button ID="OkButton1" runat="server" Text="OK" Style="display: none" CausesValidation="false" />
            <asp:Button ID="CancelButton1" runat="server" Style="display: none" Text="Close" />
        </div>
    </asp:Panel>
    <cc1:ModalPopupExtender ID="divSubcrigePopUp" runat="server" TargetControlID="lnkMore1"
        PopupControlID="PanelSubscriptionPopup1" BehaviorID="divSubcrigePopUp" DropShadow="true"
        CancelControlID="CancelButton1" BackgroundCssClass="modalBackground" />
</asp:Content>
